FROM ubuntu:16.04
MAINTAINER zhenzhen
COPY jdk1.8.0_112 jdk1.8.0_112
RUN apt-get update
RUN apt-get install -y redis-server
RUN service redis-server start
ENV JAVA_HOME=/jdk1.8.0_112
ENV PATH=$JAVA_HOME/bin:$PATH
ENV CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
VOLUME /tmp
ADD springboot-1.0-SNAPSHOT.jar app.jar
EXPOSE 8080
# ENTRYPOINT ["java", "-jar", "/app.jar"]